import type { VNodeChild, PropType, ExtractPublicPropTypes } from "@/_utils";

export type ${name}Children = (params: { count: number }) => VNodeChild;

export const ${nameLowerFirst}PropsOptions = {
  /**
   * 默认插槽
   */
  children: {
    type: Function as PropType<${name}Children>,
    default: "${name}",
  },
} as const;

export type ${name}Props = ExtractPublicPropTypes<typeof ${nameLowerFirst}PropsOptions>;

export interface ${name}Slots {
  default: ${name}Props["children"];
}
